package com.own.business.resource.common.model;

import lombok.Builder;
import lombok.Getter;

import java.io.Serializable;

/**
 * UploadModelConfig
 *
 * @author chenxueli
 * @date 2024-01-10 14:04:00
 */
@Getter
@Builder
public class UploadModelConfig implements Serializable {

    /**
     * 默认的上传配置
     */
    public static final UploadModelConfig DEFAULT = UploadModelConfig.builder().build();

    /**
     * 不需要随机名称的上传配置
     */
    public static final UploadModelConfig NOT_RANDOM_NAME = UploadModelConfig.builder().isRandomName(false).build();

    /**
     * 是否需要随机名称
     */
    @Builder.Default
    private final Boolean isRandomName = true;

}
